<?php $this->_extends('_layouts/bocib_layout'); ?>

<?php $this->_block('content');?>
<div id="content">
    <h2>更新授课关系</h2>
    <form action="<?=url('bofaculty/edittcmap');?>" method="post" id="courses">
        <div>
            <div class="ncourse"><!-- 未选课程 -->
                <?php foreach($ncourses as $ncourse) { ?>
                <input type="checkbox" name="course[]" value="<?=$ncourse->course_id;?>" />
                <label><?=$ncourse->course;?></label><br />
                <?php } ?>
                <input type="submit" value="提交" style="clear:both;"/>
            </div>

            <div class="ycourse"><!-- 已选课程 -->
                <?php foreach($ycourses as $ycourse) { ?>
                <input type="checkbox" name="course[]" value="<?=$ycourse->course_id;?>" checked="checked" />
                <label><?=$ycourse->course;?></label><br />
                <?php } ?>
            </div>
        </div>
    </form>
</div>

<?php $this->_endblock('content');?>